package com.amazon.ags.client.leaderboards;

import android.util.Log;
import com.amazon.ags.api.ErrorCode;
import com.amazon.ags.api.leaderboards.SubmitScoreResponse;
import com.amazon.ags.client.RequestResponseImp;
import com.amazon.ags.constants.LeaderboardFilter;
import java.util.HashMap;
import java.util.Map;

public class SubmitScoreResponseImp extends RequestResponseImp
  implements SubmitScoreResponse
{
  private static final String FEATURE_NAME = "LB";
  private static final String TAG = "LB_" + SubmitScoreResponseImp.class.getSimpleName();
  private Map<LeaderboardFilter, Boolean> improvedInFilter;
  private Map<LeaderboardFilter, Integer> rankInFilter;

  public SubmitScoreResponseImp(int paramInt, ErrorCode paramErrorCode)
  {
    super(paramInt, paramErrorCode);
  }

  public SubmitScoreResponseImp(Map<LeaderboardFilter, Boolean> paramMap, Map<LeaderboardFilter, Integer> paramMap1, int paramInt)
  {
    super(paramInt);
    this.improvedInFilter = paramMap;
    this.rankInFilter = paramMap1;
    if ((paramMap == null) || (paramMap1 == null))
    {
      Log.d(TAG, "Constructing SubmitScoreResponse with null improvements");
      this.improvedInFilter = new HashMap();
      this.rankInFilter = new HashMap();
    }
  }

  public final int getEventType()
  {
    return 8;
  }

  public final Map<LeaderboardFilter, Integer> getNewRank()
  {
    return this.rankInFilter;
  }

  public final Map<LeaderboardFilter, Boolean> getRankImproved()
  {
    return this.improvedInFilter;
  }

  public final String toString()
  {
    String str1 = super.toString();
    String str2 = str1 + "\n Improvements: " + this.improvedInFilter;
    return str2 + "\n Ranks: " + this.rankInFilter;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.amazon.ags.client.leaderboards.SubmitScoreResponseImp
 * JD-Core Version:    0.6.2
 */